import request from "@/utils/request";

export function queryGeneratorCodeFileRuleListByConditionMap2(data) {
  return request({
    url: 'api/efficiencyTools/generatorCodeFileRule/queryGeneratorCodeFileRuleListByConditionMap2',
    method: 'get',
    params: data,
  })
}

export function downloadDataToExcel(data) {

  return request({
    url: 'api/efficiencyTools/generatorCodeFileRule/downloadGeneratorCodeFileRuleListByCondition',
    method: 'get',
    params: data,
    responseType: 'blob'
  })
}


export function queryGeneratorCodeFileRuleByCondition(data) {
  return request({
    url: 'api/efficiencyTools/generatorCodeFileRule/queryGeneratorCodeFileRuleByCondition',
    method: 'get',
    params: data,
  })
}


export function updateGeneratorCodeFileRule(data) {
  return request({
    url: 'api/efficiencyTools/generatorCodeFileRule/updateGeneratorCodeFileRule',
    method: 'post',
    data: data,
  })
}

export function saveGeneratorCodeFileRuleSingleLineData(data) {
  return request({
    url: 'api/efficiencyTools/generatorCodeFileRule/saveGeneratorCodeFileRuleSingleLineData',
    method: 'post',
    data: data,
  })
}

export function deleteGeneratorCodeFileRuleByIntegerIdList(data) {
  return request({
    url: 'api/efficiencyTools/generatorCodeFileRule/deleteGeneratorCodeFileRuleByIntegerIdList',
    method: 'delete',
    params: data,
  })
}

export function insertByExcel(data) {
  return request({
    url: '/api/efficiencyTools/generatorCodeFileRule/insertByExcel',
    method: 'post',
    data: data
  })
}
